home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 2 / BBS in a box - Trilogy II.iso / Files / Hyper / Ss-Sz / Stack Starter ß.979 / Stack Starter fl.979 / background_2295.txt < prev    next >
Encoding:
Text File  |  1989-07-29  |  58.7 KB  |  2,090 lines

  1. -- background: 2295 from stack: in.979
  2. -- bmap block id: 16109
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: Stack Starter Bkgnd 1
  6. ----- HyperTalk script -----
  7. ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Script info for this bkgnd. ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû
  8. HANDLERS: playAll,openCard,idle,openBackground
  9.  
  10. FUNCTIONS:
  11.  
  12. Size of script: 568 chars.         8/16/88         Robertson Reed Smith
  13. ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû
  14.  
  15.  
  16. on playAll
  17.   repeat with btnid = 1 to 8
  18.     send mouseUp to card btn id btnid
  19.   end repeat
  20. end playAll
  21.  
  22. on openCard
  23.   put the short name of this card into bkgnd field "Title"
  24.   put "Prev Card:" && short name of prev card into field id 78
  25.   put "Next Card:" && short name of next card into field id 79
  26.   pass openCard
  27. end openCard
  28.  
  29. on idle
  30.   if visible of field "Mouse Loc2" is true then
  31.     put the mouseLoc into field "Mouse Loc2"
  32.   end if
  33.   send idle to stack
  34.   exit idle
  35. end idle
  36.  
  37. on openBackground
  38.   hide bkgnd btn id 121
  39.   pass openBackground
  40. end openBackground
  41.  
  42.  
  43.  
  44. -- part 54 (field)
  45. -- low flags: 81
  46. -- high flags: 0000
  47. -- rect: left=261 top=290 right=302 bottom=273
  48. -- title width / last selected line: 0
  49. -- icon id / first selected line: 0 / 0
  50. -- text alignment: 0
  51. -- font id: 3
  52. -- text size: 12
  53. -- style flags: 0
  54. -- line height: 16
  55. -- part name: Date
  56.  
  57.  
  58. -- part 80 (button)
  59. -- low flags: 00
  60. -- high flags: 0001
  61. -- rect: left=15 top=65 right=311 bottom=494
  62. -- title width / last selected line: 0
  63. -- icon id / first selected line: 0 / 0
  64. -- text alignment: 1
  65. -- font id: 511
  66. -- text size: 12
  67. -- style flags: 0
  68. -- line height: 16
  69. -- part name: Grid Cover
  70. ----- HyperTalk script -----
  71. on mouseUp
  72.  
  73. end mouseUp
  74.  
  75.  
  76.  
  77. -- part 71 (button)
  78. -- low flags: 80
  79. -- high flags: 4002
  80. -- rect: left=224 top=62 right=75 bottom=366
  81. -- title width / last selected line: 0
  82. -- icon id / first selected line: 0 / 0
  83. -- text alignment: 1
  84. -- font id: 0
  85. -- text size: 12
  86. -- style flags: 0
  87. -- line height: 16
  88. -- part name: Mouse Loc
  89.  
  90.  
  91. -- part 42 (button)
  92. -- low flags: 00
  93. -- high flags: 8004
  94. -- rect: left=13 top=311 right=327 bottom=59
  95. -- title width / last selected line: 0
  96. -- icon id / first selected line: 0 / 0
  97. -- text alignment: 1
  98. -- font id: 0
  99. -- text size: 12
  100. -- style flags: 0
  101. -- line height: 16
  102. -- part name: Cover
  103. ----- HyperTalk script -----
  104. on mouseUp
  105.   set hilite of me to true
  106.   doMenu short name of me
  107.   set hilite of me to false
  108. end mouseUp
  109.  
  110.  
  111.  
  112. -- part 55 (button)
  113. -- low flags: 00
  114. -- high flags: 8000
  115. -- rect: left=217 top=283 right=301 bottom=286
  116. -- title width / last selected line: 0
  117. -- icon id / first selected line: 0 / 0
  118. -- text alignment: 1
  119. -- font id: 204
  120. -- text size: 12
  121. -- style flags: 0
  122. -- line height: 16
  123. -- part name: Î Í Ï
  124. ----- HyperTalk script -----
  125. on mouseUp
  126.   get trunc(((item 1 of the clickloc) - (item 1 of the rect of me)) / (((item 3 of the rect of me) - (item 1 of the rect of me)) / 3))
  127.  
  128.   if it is 0 then
  129.     scroll L
  130.     go prev card
  131.   else if it is 1 then
  132.     scroll D
  133.     doMenu "Home"
  134.   else if it is 2 then
  135.     scroll R
  136.     go next card
  137.   end if
  138. end mouseUp
  139.  
  140.  
  141. -- part 56 (field)
  142. -- low flags: 01
  143. -- high flags: 0000
  144. -- rect: left=62 top=31 right=66 bottom=454
  145. -- title width / last selected line: 0
  146. -- icon id / first selected line: 0 / 0
  147. -- text alignment: 1
  148. -- font id: 185
  149. -- text size: 26
  150. -- style flags: 10496
  151. -- line height: 34
  152. -- part name: Title
  153.  
  154.  
  155. -- part 58 (button)
  156. -- low flags: 00
  157. -- high flags: 8004
  158. -- rect: left=58 top=311 right=327 bottom=93
  159. -- title width / last selected line: 0
  160. -- icon id / first selected line: 0 / 0
  161. -- text alignment: 1
  162. -- font id: 0
  163. -- text size: 12
  164. -- style flags: 0
  165. -- line height: 16
  166. -- part name: Map
  167. ----- HyperTalk script -----
  168. on mouseUp
  169.   set hilite of me to true
  170.   doMenu short name of me
  171.   set hilite of me to false
  172. end mouseUp
  173.  
  174.  
  175.  
  176. -- part 59 (button)
  177. -- low flags: 00
  178. -- high flags: 8004
  179. -- rect: left=92 top=311 right=327 bottom=151
  180. -- title width / last selected line: 0
  181. -- icon id / first selected line: 0 / 0
  182. -- text alignment: 1
  183. -- font id: 0
  184. -- text size: 12
  185. -- style flags: 0
  186. -- line height: 16
  187. -- part name: Buttons
  188. ----- HyperTalk script -----
  189. on mouseUp
  190.   set hilite of me to true
  191.   doMenu short name of me
  192.   set hilite of me to false
  193. end mouseUp
  194.  
  195.  
  196.  
  197. -- part 60 (button)
  198. -- low flags: 00
  199. -- high flags: 8004
  200. -- rect: left=150 top=311 right=327 bottom=211
  201. -- title width / last selected line: 0
  202. -- icon id / first selected line: 0 / 0
  203. -- text alignment: 1
  204. -- font id: 0
  205. -- text size: 12
  206. -- style flags: 0
  207. -- line height: 16
  208. -- part name: Controls
  209. ----- HyperTalk script -----
  210. on mouseUp
  211.   set hilite of me to true
  212.   doMenu short name of me
  213.   set hilite of me to false
  214. end mouseUp
  215.  
  216.  
  217.  
  218. -- part 61 (button)
  219. -- low flags: 00
  220. -- high flags: 8004
  221. -- rect: left=210 top=311 right=327 bottom=265
  222. -- title width / last selected line: 0
  223. -- icon id / first selected line: 0 / 0
  224. -- text alignment: 1
  225. -- font id: 0
  226. -- text size: 12
  227. -- style flags: 0
  228. -- line height: 16
  229. -- part name: Effects
  230. ----- HyperTalk script -----
  231. on mouseUp
  232.   set hilite of me to true
  233.   doMenu short name of me
  234.   set hilite of me to false
  235. end mouseUp
  236.  
  237.  
  238.  
  239. -- part 62 (button)
  240. -- low flags: 00
  241. -- high flags: 8004
  242. -- rect: left=264 top=311 right=327 bottom=310
  243. -- title width / last selected line: 0
  244. -- icon id / first selected line: 0 / 0
  245. -- text alignment: 1
  246. -- font id: 0
  247. -- text size: 12
  248. -- style flags: 0
  249. -- line height: 16
  250. -- part name: Fields
  251. ----- HyperTalk script -----
  252. on mouseUp
  253.   set hilite of me to true
  254.   doMenu short name of me
  255.   set hilite of me to false
  256. end mouseUp
  257.  
  258.  
  259.  
  260. -- part 63 (button)
  261. -- low flags: 00
  262. -- high flags: 8004
  263. -- rect: left=309 top=311 right=327 bottom=352
  264. -- title width / last selected line: 0
  265. -- icon id / first selected line: 0 / 0
  266. -- text alignment: 1
  267. -- font id: 0
  268. -- text size: 12
  269. -- style flags: 0
  270. -- line height: 16
  271. -- part name: Icons
  272. ----- HyperTalk script -----
  273. on mouseUp
  274.   set hilite of me to true
  275.   doMenu short name of me
  276.   set hilite of me to false
  277. end mouseUp
  278.  
  279.  
  280.  
  281. -- part 64 (button)
  282. -- low flags: 00
  283. -- high flags: 8004
  284. -- rect: left=351 top=311 right=327 bottom=404
  285. -- title width / last selected line: 0
  286. -- icon id / first selected line: 0 / 0
  287. -- text alignment: 1
  288. -- font id: 0
  289. -- text size: 12
  290. -- style flags: 0
  291. -- line height: 16
  292. -- part name: Scripts
  293. ----- HyperTalk script -----
  294. on mouseUp
  295.   set hilite of me to true
  296.   doMenu short name of me
  297.   set hilite of me to false
  298. end mouseUp
  299.  
  300.  
  301.  
  302. -- part 65 (button)
  303. -- low flags: 00
  304. -- high flags: 8004
  305. -- rect: left=403 top=311 right=327 bottom=455
  306. -- title width / last selected line: 0
  307. -- icon id / first selected line: 0 / 0
  308. -- text alignment: 1
  309. -- font id: 0
  310. -- text size: 12
  311. -- style flags: 0
  312. -- line height: 16
  313. -- part name: Sounds
  314. ----- HyperTalk script -----
  315. on mouseUp
  316.   set hilite of me to true
  317.   doMenu short name of me
  318.   set hilite of me to false
  319. end mouseUp
  320.  
  321.  
  322.  
  323. -- part 66 (button)
  324. -- low flags: 00
  325. -- high flags: 8000
  326. -- rect: left=454 top=311 right=327 bottom=494
  327. -- title width / last selected line: 0
  328. -- icon id / first selected line: 0 / 0
  329. -- text alignment: 1
  330. -- font id: 0
  331. -- text size: 12
  332. -- style flags: 0
  333. -- line height: 16
  334. -- part name: Tools
  335. ----- HyperTalk script -----
  336. on mouseUp
  337.   set hilite of me to true
  338.   doMenu short name of me
  339.   set hilite of me to false
  340. end mouseUp
  341.  
  342.  
  343.  
  344. -- part 67 (field)
  345. -- low flags: 80
  346. -- high flags: 0000
  347. -- rect: left=223 top=62 right=74 bottom=315
  348. -- title width / last selected line: 0
  349. -- icon id / first selected line: 0 / 0
  350. -- text alignment: 0
  351. -- font id: 3
  352. -- text size: 9
  353. -- style flags: 10496
  354. -- line height: 12
  355. -- part name: Mouse Loc1
  356. ----- HyperTalk script -----
  357. on mouseUp
  358.   put the mouseLoc into field "Mouse Loc2"
  359.   send idle to bkgnd id 2600
  360. end mouseUp
  361.  
  362.  
  363.  
  364. -- part 68 (field)
  365. -- low flags: 81
  366. -- high flags: 0000
  367. -- rect: left=311 top=62 right=76 bottom=368
  368. -- title width / last selected line: 0
  369. -- icon id / first selected line: 0 / 0
  370. -- text alignment: 1
  371. -- font id: 3
  372. -- text size: 9
  373. -- style flags: 10496
  374. -- line height: 12
  375. -- part name: Mouse Loc2
  376. ----- HyperTalk script -----
  377. on mouseUp
  378.   put the mouseLoc into field "Mouse Loc2"
  379.   send idle to bkgnd id 2600
  380. end mouseUp
  381.  
  382.  
  383.  
  384. -- part 72 (button)
  385. -- low flags: 80
  386. -- high flags: 4002
  387. -- rect: left=15 top=300 right=312 bottom=251
  388. -- title width / last selected line: 0
  389. -- icon id / first selected line: 0 / 0
  390. -- text alignment: 0
  391. -- font id: 0
  392. -- text size: 9
  393. -- style flags: 256
  394. -- line height: 12
  395. -- part name: Prev Card: the sound sampler
  396. ----- HyperTalk script -----
  397. on mouseUp
  398.  
  399. end mouseUp
  400.  
  401.  
  402.  
  403. -- part 73 (button)
  404. -- low flags: 80
  405. -- high flags: 4002
  406. -- rect: left=253 top=300 right=312 bottom=492
  407. -- title width / last selected line: 0
  408. -- icon id / first selected line: 0 / 0
  409. -- text alignment: 0
  410. -- font id: 0
  411. -- text size: 9
  412. -- style flags: 256
  413. -- line height: 12
  414. -- part name: Next Card: Panic Spredsheet
  415. ----- HyperTalk script -----
  416. on mouseUp
  417.  
  418. end mouseUp
  419.  
  420.  
  421.  
  422. -- part 78 (field)
  423. -- low flags: 81
  424. -- high flags: 0000
  425. -- rect: left=16 top=299 right=313 bottom=250
  426. -- title width / last selected line: 0
  427. -- icon id / first selected line: 0 / 0
  428. -- text alignment: 0
  429. -- font id: 3
  430. -- text size: 9
  431. -- style flags: 10496
  432. -- line height: 12
  433. -- part name: 
  434. ----- HyperTalk script -----
  435. on mouseUp
  436.   scrollL
  437.   go to card char 12 to 99 of short name of me
  438. end mouseUp
  439.  
  440.  
  441.  
  442. -- part 79 (field)
  443. -- low flags: 81
  444. -- high flags: 0000
  445. -- rect: left=252 top=299 right=313 bottom=495
  446. -- title width / last selected line: 0
  447. -- icon id / first selected line: 0 / 0
  448. -- text alignment: 0
  449. -- font id: 3
  450. -- text size: 9
  451. -- style flags: 10496
  452. -- line height: 12
  453. -- part name: 
  454. ----- HyperTalk script -----
  455. on mouseUp
  456.   scrollR
  457.   go to card char 12 to 99 of short name of me
  458. end mouseUp
  459.  
  460.  
  461.  
  462. -- part 81 (button)
  463. -- low flags: 80
  464. -- high flags: 4002
  465. -- rect: left=370 top=62 right=75 bottom=494
  466. -- title width / last selected line: 0
  467. -- icon id / first selected line: 0 / 0
  468. -- text alignment: 1
  469. -- font id: 0
  470. -- text size: 12
  471. -- style flags: 0
  472. -- line height: 16
  473. -- part name: FreeSpaceMon
  474. ----- HyperTalk script -----
  475. on mouseUp
  476.   freeSpace
  477. end mouseUp
  478.  
  479.  
  480.  
  481. -- part 82 (field)
  482. -- low flags: 81
  483. -- high flags: 0000
  484. -- rect: left=369 top=62 right=76 bottom=442
  485. -- title width / last selected line: 0
  486. -- icon id / first selected line: 0 / 0
  487. -- text alignment: 0
  488. -- font id: 3
  489. -- text size: 9
  490. -- style flags: 10496
  491. -- line height: 12
  492. -- part name: FreeSpaceMon1
  493.  
  494.  
  495. -- part 83 (field)
  496. -- low flags: 81
  497. -- high flags: 0000
  498. -- rect: left=435 top=62 right=76 bottom=497
  499. -- title width / last selected line: 0
  500. -- icon id / first selected line: 0 / 0
  501. -- text alignment: 0
  502. -- font id: 3
  503. -- text size: 9
  504. -- style flags: 10496
  505. -- line height: 12
  506. -- part name: FreeSpaceMon2
  507.  
  508.  
  509. -- part 93 (button)
  510. -- low flags: 00
  511. -- high flags: C002
  512. -- rect: left=12 top=26 right=38 bottom=494
  513. -- title width / last selected line: 0
  514. -- icon id / first selected line: 0 / 0
  515. -- text alignment: 1
  516. -- font id: 0
  517. -- text size: 12
  518. -- style flags: 8192
  519. -- line height: 16
  520. -- part name: A | B | C | D | E | F | G | H |  I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | + | -
  521. ----- HyperTalk script -----
  522. on mousedown
  523.   global Fred, Nick
  524.   set hilite of me to true
  525.   if Fred <> empty then
  526.     if visible of field Fred is true then hide field Fred
  527.   end if
  528.   put the rect of the target into holder
  529.   put (item 1 of the clickloc) - (item 1 of the rect of me) into A
  530.   put (item 3 of the rect of me) - (item 1 of the rect of me) into B
  531.   put the numToChar of (trunc(A/(B/28))+65) into Fred
  532.   if Fred is empty then
  533.   else if Fred is "[" then indexAddName
  534.   else if Fred is "\" then indexDeleteName
  535.   else
  536.     play Fred
  537.     if the commandKey is down then indexEditMode
  538.     else
  539.       put (item 1 of the clickloc-6) into horiz
  540.       put (item 2 of holder)+12 into vert
  541.       get script of field Fred
  542.       if it is empty then
  543.         answer "Oops, nothing to display." with "Sorry"
  544.         exit mouseDown
  545.       else
  546.         put return & "Edit Menu" after it
  547.         get HPopupMenu(it,0, vert, horiz)
  548.         --get HeirPopupMenu(it,0, vert, horiz)
  549.         if it is "0" then exit mouseDown
  550.         put Item 1 of it into TheLine
  551.         put Item 2 of it into TheItem
  552.         if Item 2 of it <> 1 then
  553.           put item 1 of line TheLine of script of field Fred & item TheItem of line TheLine of script of field Fred into Sam
  554.         else
  555.           put (item 1 of line TheLine of script of field Fred) into Sam
  556.         end if
  557.         if sam = empty then indexEditMode
  558.         -- put sam
  559.         if char 1 of sam is "A" then
  560.           if Sam is "About Stack Starter" then go card "the stack starter"
  561.           else if Sam is "Add Script Header" then ScriptHeader
  562.           else if Sam is "Allover Analyzer" then go card "the allover analyzer"
  563.           else if Sam is "Animated Icons 1" then go card "animated icons 1"
  564.           else if Sam is "Animated Icons 2" then go card "animated icons 2"
  565.           else if Sam is "Animated Icons 3" then go card "animated icons 3"
  566.           else if Sam is "Animated Icons 4" then go card "animated icons 4"
  567.           else if Sam is "Animated Icons 5" then go card "animated icons 5"
  568.           else if Sam is "Animated Icons 6" then go card "animated icons 6"
  569.           else if Sam is "Author" then author
  570.         end if
  571.         if char 1 of sam is "B" then
  572.           if Sam is "Blind Typing" then set BlindTyping to true
  573.           else if Sam is "Button breeder" then go card "the button breeder"
  574.           else if Sam is "Button Font Changer" then changeFont
  575.           else if Sam is "Buttons" then go to card "the button breeder"
  576.           else if Sam is "Buttons Change Font" then changeFont
  577.           else if Sam is "Buttons Create" then go card "the button breeder"
  578.           else if Sam is "Buttons Direction" then go card "the button breeder"
  579.           else if Sam is "Buttons Misc..." then go card "the button breeder"
  580.           else if Sam is "Buttons Multi-Icon" then go card "multi-icon buttons"
  581.           else if Sam is "Buttons Push" then go card "Pushbuttons and Switches"
  582.           else if Sam is "Buttons Radio" then go card "Pushbuttons and Switches"
  583.           else if Sam is "Buttons Slider" then go to card "sliders"
  584.           else if Sam is "Buttons Smart" then go card "Pushbuttons and Switches"
  585.           else if Sam is "Buttons Switches" then go card "Pushbuttons and Switches"
  586.           else if Sam is "Buttons Toggle" then go card "Pushbuttons and Switches"
  587.         end if
  588.         if char 1 of sam is "C" then
  589.           if Sam is "Change Button Font" then changeFont
  590.           else if Sam is "Controls" then go to card "the controls cultivator"
  591.           else if Sam is "Controls Guages" then go card "guages and meters"
  592.           else if Sam is "Controls Meters" then go card "gauges and meters"
  593.           else if Sam is "Controls Pushbuttons" then go card "Pushbuttons and Switches"
  594.           else if Sam is "Controls Sliders" then go card "the controls cultivator"
  595.           else if Sam is "Controls Switches" then go card "Pushbuttons and Switches"
  596.           else if Sam is "Controls Knobs" then go to card "knobs"
  597.           else if Sam is "Cover" then go to card "the stack starter"
  598.           else if Sam is "Crash" then crash
  599.           else if Sam is "Create An Icon" then MakeIcon
  600.           else if Sam is "Credits" then credits
  601.           else if Sam is "Cursors" then cursors
  602.         end if
  603.         if char 1 of sam is "D" then
  604.           if Sam is "Date & Time" then timeDate
  605.           else if Sam is "Dedications" then dedications
  606.           else if Sam is "Descriptions" then go card "the stack starter"
  607.           else if Sam is "Digitized Sounds" then go card "the sound sampler"
  608.           else if Sam is "DeProtect Stack" then deprotect1
  609.           else if Sam is "Disk Space Available" then diskSpaceAvail
  610.           else if Sam is "Don't Click Here" then overLoad
  611.           else if Sam is "Don't Panic" then panic
  612.         end if
  613.         if char 1 of sam is "E" then
  614.           if Sam is "Edit This... Bkgnd Script" then edit script of this bkgnd
  615.           else if Sam is "Edit This... Card Script" then edit script of this card
  616.           else if Sam is "Edit This... Stack Script" then edit script of this stack
  617.           else if Sam is "Effects Sound" then go card "the sound sampler"
  618.           else if Sam is "Effects Visual" then go card "the effects editor"
  619.           else if Sam is "Effects Editor" then go card "the effects editor"
  620.           else if Sam is "Explanations" then go card "the stack starter"
  621.         end if
  622.         if char 1 of sam is "F" then
  623.           if Sam is "Field Fabricator" then go card "the field fabricater"
  624.           else if Sam is "Fields" then go card "the field fabricater"
  625.           else if Sam is "Fields Locking" then go card "the field fabricater"
  626.           else if Sam is "Fields Growing" then go card "the field fabricater"
  627.           else if Sam is "Fields Note" then go card "the field fabricater"
  628.           else if Sam is "Fields Repositionable" then go card "the field fabricater"
  629.           else if Sam is "Fonts" then
  630.             go card "the master map"
  631.             send mouseUp to btn id 28
  632.           else if Sam is "Free-Roaming Icons" then go card "Animated Icons 1"
  633.           else if Sam is "Free Space in this stack" then freeSpace
  634.           else if Sam is "Free Space Monitor" then freeSpaceMon
  635.         end if
  636.         if char 1 of sam is "G" then
  637.           if Sam is "Gauges" then go card "meters and gauges"
  638.           else if Sam is "Get Specs" then getSpecs
  639.           else if Sam is "Graphic Examples" then pause
  640.           else if Sam is "Graphic Techniques" then pause
  641.           else if Sam is "Grid" then piGrid
  642.         end if
  643.         if char 1 of sam is "H" then
  644.           if Sam is "Handlers" then go to card "the helpful hierarchy"
  645.           else if Sam is "Heap Space Available" then heapSpaceAvail
  646.           else if Sam is "Helpful Hierarchy" then go to card "the helpful hierarchy"
  647.           else if Sam is "Hidden Buttons" then ShowHiddenBtns
  648.           else if Sam is "Hidden Fields" then ShowHiddenFields
  649.           else if Sam is "Hierarchy" then go to card "the helpful hierarchy"
  650.           else if Sam is "HyperCard Version?" then HyperCardVersion
  651.           else if Sam is "HyperEdit" then answer "Hold down the return Key and the shift Key"
  652.           else if Sam is "HyperSound‚Ñ¢" then go to stack "HyperSound"
  653.         end if
  654.         if char 1 of sam is "I" then
  655.           if Sam is "Icon Ideas" then go to card "the icon initiator"
  656.           else if Sam is "Icon Initiator" then go to card "the icon initiator"
  657.           else if Sam is "Indicaters" then go to card "Pushbuttons and Switches"
  658.           else if Sam is "Inhieritance Path" then go to card "the helpful hierarchy"
  659.           else if Sam is "Icons" then go to card "the icon initiator"
  660.           else if Sam is "Icons Animated 1" then go card "animated icons 1"
  661.           else if Sam is "Icons Animated 2" then go card "animated icons 2"
  662.           else if Sam is "Icons Animated 3" then go card "animated icons 3"
  663.           else if Sam is "Icons Animated 4" then go card "animated icons 4"
  664.           else if Sam is "Icons Animated 5" then go card "animated icons 5"
  665.           else if Sam is "Icons Animated 6" then go card "animated icons 6"
  666.           else if Sam is "Icons Editor" then MakeIcon
  667.           else if Sam is "Icons Examples" then go to card "the icon initiator"
  668.           else if Sam is "Icons Ideas" then go to card "the icon initiator"
  669.           else if Sam is "Icons Installed on HomeCard" then installHomeCardIcon
  670.           else if Sam is "Icons Initiator" then go to card "the icon initiator"
  671.           else if Sam is "Icons Interactive" then go card "animated icons 1"
  672.           else if Sam is "Install HomeCard Icon" then installHomeCardIcon
  673.           else if Sam is "Interactive Icons" then go to card "Animated Icons 1"
  674.           else if Sam is "Intro" then pause
  675.         end if
  676.         if char 1 of sam is "K" then
  677.           if Sam is "Keyboard Simulator" then go card "Keyboard"
  678.           else if Sam is "Knobs" then go to card "knobs"
  679.         end if
  680.         if char 1 of sam is "L" then
  681.           if Sam is "Last Updated" then updated
  682.           else if Sam is "List Next & Prev Cards" then LNPC
  683.         end if
  684.         if char 1 of sam is "M" then
  685.           if Sam is "Make Icons" then MakeIcon
  686.           else if Sam is "Map" then go to card "the master map"
  687.           else if Sam is "Menus" then answer "Sorry, This feature not yet supported"
  688.           else if Sam is "Meters" then go to card "meters"
  689.           else if Sam is "Mouse Location" then mouseLocation
  690.           else if Sam is "Multi-Icon Buttons" then go to card "multi-icon buttons"
  691.         end if
  692.         if char 1 of sam is "N" then
  693.           if Sam is "Next & Prev Cards" then LNPC
  694.         end if
  695.         if char 1 of sam is "O" then
  696.           if Sam is "Organizational Chart" then go to card "the master map"
  697.           else if Sam is "Open Aplication" then openApl
  698.           else if Sam is "OverLoad" then overLoad
  699.         end if
  700.         if char 1 of sam is "P" then
  701.           if Sam is "Panic" then panic
  702.           else if Sam is "Pause" then pause
  703.           else if Sam is "Pixel Grid" then piGrid
  704.           else if Sam is "Power Keys" then set PowerKeys to true
  705.           else if Sam is "Previous & Next Card" then LNPC
  706.           else if Sam is "Pushbuttons" then go to card "Pushbuttons and Switches"
  707.         end if
  708.         if char 1 of sam is "Q" then
  709.           if Sam is "Quit HyperCard" then domenu "Quit HyperCard"
  710.         end if
  711.         if char 1 of sam is "R" then
  712.           if Sam is "ResCopy" then ResCopy
  713.           else if Sam is "ResEdit" then open "ResEdit 1.1B3"
  714.           else if Sam is "Resource Editors" then answer "Look under Editors menu above"
  715.           else if Sam is "Resources" then answer "Look under Editors menu above"
  716.         end if
  717.         if char 1 of sam is "S" then
  718.           if Sam is "Script of... Bkgnd..." then bkgndScript
  719.           else if Sam is "Script of... Button..." then btnScript
  720.           else if Sam is "Script of... Card..." then cardScript
  721.           else if Sam is "Script of... Field..." then fieldScript
  722.           else if Sam is "Script of... Home Stack" then HomeScript
  723.           else if Sam is "Script of... Stack..." then stackScript
  724.           else if Sam is "Script Header" then ScriptHeader
  725.           else if Sam is "Scripts" then answer "Sorry, This feature not yet supported"
  726.           else if Sam is "Show Grid" then piGrid
  727.           else if Sam is "Show Heap Space" then heapSpaceAvail
  728.           else if Sam is "Show Size of This Stack" then SizeofStack
  729.           else if Sam is "Sliders" then go card "sliders"
  730.           else if Sam is "SoundEdit‚Ñ¢" then open SoundEdit
  731.           else if Sam is "Sounds - snd Resources" then go card "the sound sampler"
  732.           else if Sam is "Sounds - snd Resources" then go card "the sound sampler"
  733.           else if Sam is "Sounds Animal" then go card "the sound sampler"
  734.           else if Sam is "Sounds Digitized" then go card "the sound sampler"
  735.           else if Sam is "Sounds Instrument" then go card "the sound sampler"
  736.           else if Sam is "Sounds Keyboard" then go card "Keyboard"
  737.           else if Sam is "Sounds Music" then go card "the sound sampler"
  738.           else if Sam is "Sounds People" then go card "the sound sampler"
  739.           else if Sam is "Sounds snd Resources" then go card "the sound sampler"
  740.           else if Sam is "Sounds Speech Synthesis" then go card "the sound sampler"
  741.           else if Sam is "Sounds Tempo" then go card "the sound sampler"
  742.           else if Sam is "Sounds Tunes" then go card "the sound sampler"
  743.           else if Sam is "Stack Space Available" then stackSpaceAvail
  744.           else if Sam is "Switches" then go card "Pushbuttons and Switches"
  745.         end if
  746.         if char 1 of sam is "T" then
  747.           if Sam is "Text Arrows" then set TextArrows to false
  748.           else if Sam is "Time & Date" then timeDate
  749.           else if Sam is "Titles" then pause
  750.           else if Sam is "Tools" then go to card "the allover analyzer"
  751.         end if
  752.         if char 1 of sam is "U" then
  753.           if Sam is "UserLevel1  Browsing" then set userLevel to 1
  754.           else if Sam is "UserLevel2  Typing" then set userLevel to 2
  755.           else if Sam is "UserLevel3  Painting" then set userLevel to 3
  756.           else if Sam is "UserLevel4  Authoring" then set userLevel to 4
  757.           else if Sam is "UserLevel5  Scripting" then set userLevel to 5
  758.         end if
  759.         if char 1 of sam is "V" then
  760.           if Sam is "Version Number" then HyperCardVersion
  761.           else if Sam is "Visual Effects" then go to card "the effects editor"
  762.           else if Sam is "Volume Adjustment 0  Mute" then
  763.             SetVolume(0)
  764.             play harpsichord "c ew"
  765.           else if Sam is "Volume Adjustment 1  Soft" then
  766.             SetVolume(1)
  767.             play harpsichord "c ew"
  768.           else if Sam is "Volume Adjustment 2" then
  769.             SetVolume(2)
  770.             play harpsichord "c ew"
  771.           else if Sam is "Volume Adjustment 3" then
  772.             SetVolume(3)
  773.             play harpsichord "c ew"
  774.           else if Sam is "Volume Adjustment 4  Medium" then
  775.             SetVolume(4)
  776.             play harpsichord "c ew"
  777.           else if Sam is "Volume Adjustment 5" then
  778.             SetVolume(5)
  779.             play harpsichord "c ew"
  780.           else if Sam is "Volume Adjustment 6" then
  781.             SetVolume(6)
  782.             play harpsichord "c ew"
  783.           else if Sam is "Volume Adjustment 7  Loudest" then
  784.             SetVolume(7)
  785.             play harpsichord "c ew"
  786.           else if Sam is "Volume Controls" then go to card "the controls cultivator"
  787.         end if
  788.         if char 1 of sam is "X" then
  789.           if Sam is "XCMDs" then go to card "the master map"
  790.           else if Sam is "XFCNs" then go to card "the master map"
  791.           else
  792.             put "the " before Sam
  793.             go to card Sam
  794.             if the result <> empty then answer "Sorry, this feature not yet supported."
  795.           end if
  796.         end if
  797.       end if
  798.     end if
  799.   end if
  800.   hide msg
  801. end mousedown
  802.  
  803. on indexAddName
  804.   global Fred
  805.   ask "What menu ITEM would you like to add?" with "Please type ITEM NAME here."
  806.   if it is "Please type ITEM NAME here." then
  807.   else if it is empty then
  808.   else
  809.     set cursor to 4
  810.     lockcard
  811.     put it into addName
  812.     put first char of addName into Fred
  813.     if Fred is not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" then beep 2
  814.     else
  815.       put LowerToUpper(char 1 of addName) into char 1 of addName
  816.       put script of field Fred into field Fred
  817.       put addName into line (number of lines in field Fred) + 1 of field Fred
  818.       put SortLines(field Fred, "A" ) into field Fred
  819.       put crunch(field Fred) into field Fred
  820.       set script of field Fred to field Fred
  821.     end  if
  822.   end  if
  823.   put empty into Fred
  824. end indexAddName
  825.  
  826. on indexDeleteName
  827.   global Fred
  828.   ask "Please enter the EXACT ITEM NAME to delete."
  829.   if it is empty then
  830.   else
  831.     put it into deName
  832.     answer "Delete" && quote & deName & quote & "?" with "Cancel" or "Yes"
  833.     if it is "Yes" then
  834.       set cursor to 4
  835.       lockcard
  836.       put first char of deName into Fred
  837.       if Fred is not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" then beep 2
  838.       else
  839.         put script of field Fred into field Fred
  840.         Repeat with i = 1 to (number of lines in field Fred + 1)
  841.           if line i of field Fred = dename then
  842.             delete line i of field Fred
  843.             exit repeat
  844.           end if
  845.         end repeat
  846.         --if i > (number of lines in field Fred) then
  847.         --beep 2
  848.         -- answer "You must type name exactly as it appears"
  849.         --else
  850.         put SortLines(field Fred, "A" ) into field Fred
  851.         put crunch(field Fred) into field Fred
  852.         set script of field Fred to field Fred
  853.         -- end if
  854.       end if
  855.     end if
  856.   end if
  857.   put empty into Fred
  858. end indexDeleteName
  859.  
  860. on indexEditMode
  861.   global Fred
  862.   edit script of field Fred
  863.   set cursor to 4
  864.   lockcard
  865.   put script of field Fred into field Fred
  866.   Repeat with i = 1 to number of lines in field Fred
  867.     put LowerToUpper(char 1 of line i of field Fred) into char 1 of line i of field Fred
  868.   end repeat
  869.   put SortLines(field Fred, "A" ) into field Fred
  870.   put crunch(field Fred) into field Fred
  871.   set script of field Fred to field Fred
  872.   exit to HyperCard
  873. end indexEditMode
  874.  
  875. on mouseUp
  876.  
  877. end mouseUp
  878.  
  879.  
  880. -- part 94 (field)
  881. -- low flags: 81
  882. -- high flags: 0007
  883. -- rect: left=33 top=83 right=264 bottom=481
  884. -- title width / last selected line: 0
  885. -- icon id / first selected line: 0 / 0
  886. -- text alignment: 0
  887. -- font id: 3
  888. -- text size: 12
  889. -- style flags: 0
  890. -- line height: 16
  891. -- part name: A
  892. ----- HyperTalk script -----
  893. About Stack Starter
  894. Add Script Header
  895. Allover Analyzer
  896. Animated Icons, 1, 2, 3, 4, 5, 6
  897. Author
  898.  
  899.  
  900. -- part 95 (field)
  901. -- low flags: 81
  902. -- high flags: 0007
  903. -- rect: left=33 top=83 right=264 bottom=482
  904. -- title width / last selected line: 0
  905. -- icon id / first selected line: 0 / 0
  906. -- text alignment: 0
  907. -- font id: 3
  908. -- text size: 12
  909. -- style flags: 0
  910. -- line height: 16
  911. -- part name: B
  912. ----- HyperTalk script -----
  913. Blind Typing
  914. Button Breeder
  915. Button Font Changer
  916. Buttons, Change Font, Create, Direction, Misc..., Multi-Icon, Push, Radio, Sliders, Smart, Switches, Toggle
  917.  
  918.  
  919. -- part 96 (field)
  920. -- low flags: 81
  921. -- high flags: 0007
  922. -- rect: left=32 top=83 right=263 bottom=483
  923. -- title width / last selected line: 0
  924. -- icon id / first selected line: 0 / 0
  925. -- text alignment: 0
  926. -- font id: 3
  927. -- text size: 12
  928. -- style flags: 0
  929. -- line height: 16
  930. -- part name: C
  931. ----- HyperTalk script -----
  932. Change Button Font
  933. Controls, Guages, Knobs, Meters, Pushbuttons, Sliders, Switches
  934. Cover
  935. Crash
  936. Create an Icon
  937. Credits
  938. Cursors
  939.  
  940.  
  941. -- part 97 (field)
  942. -- low flags: 81
  943. -- high flags: 0007
  944. -- rect: left=32 top=83 right=264 bottom=483
  945. -- title width / last selected line: 0
  946. -- icon id / first selected line: 0 / 0
  947. -- text alignment: 0
  948. -- font id: 3
  949. -- text size: 12
  950. -- style flags: 0
  951. -- line height: 16
  952. -- part name: D
  953. ----- HyperTalk script -----
  954. Date & Time
  955. DeProtect Stack
  956. Dedications
  957. Descriptions
  958. Digitized Sounds
  959. Disk Space Available
  960. Don't Click Here
  961. Don't Panic
  962.  
  963.  
  964. -- part 98 (field)
  965. -- low flags: 81
  966. -- high flags: 0007
  967. -- rect: left=32 top=83 right=264 bottom=483
  968. -- title width / last selected line: 0
  969. -- icon id / first selected line: 0 / 0
  970. -- text alignment: 0
  971. -- font id: 3
  972. -- text size: 12
  973. -- style flags: 0
  974. -- line height: 16
  975. -- part name: E
  976. ----- HyperTalk script -----
  977. (Externals Examiner
  978. Edit This..., Bkgnd Script, Card Script, Stack Script
  979. Effects Editor
  980. Effects, Sound, Visual
  981. Explanations
  982.  
  983.  
  984. -- part 99 (field)
  985. -- low flags: 81
  986. -- high flags: 0007
  987. -- rect: left=32 top=83 right=264 bottom=483
  988. -- title width / last selected line: 0
  989. -- icon id / first selected line: 0 / 0
  990. -- text alignment: 0
  991. -- font id: 3
  992. -- text size: 12
  993. -- style flags: 0
  994. -- line height: 16
  995. -- part name: F
  996. ----- HyperTalk script -----
  997. Field Fabricator
  998. Fields, Locking, Growing, Note, Repositionable
  999. Fonts
  1000. Free Space, in this stack, Monitor
  1001. Free-Roaming Icons
  1002.  
  1003.  
  1004. -- part 100 (field)
  1005. -- low flags: 81
  1006. -- high flags: 0007
  1007. -- rect: left=32 top=83 right=264 bottom=483
  1008. -- title width / last selected line: 0
  1009. -- icon id / first selected line: 0 / 0
  1010. -- text alignment: 0
  1011. -- font id: 3
  1012. -- text size: 12
  1013. -- style flags: 0
  1014. -- line height: 16
  1015. -- part name: G
  1016. ----- HyperTalk script -----
  1017. Gauges
  1018. Get Specs
  1019. Graphic, Examples, Techniques
  1020. Grid
  1021.  
  1022.  
  1023. -- part 101 (field)
  1024. -- low flags: 81
  1025. -- high flags: 0007
  1026. -- rect: left=32 top=82 right=264 bottom=483
  1027. -- title width / last selected line: 0
  1028. -- icon id / first selected line: 0 / 0
  1029. -- text alignment: 0
  1030. -- font id: 3
  1031. -- text size: 12
  1032. -- style flags: 0
  1033. -- line height: 16
  1034. -- part name: H
  1035. ----- HyperTalk script -----
  1036. (HyperTalk Compiler
  1037. (HyperTalk to XCMD Converter
  1038. Handlers
  1039. Heap Space Available
  1040. Helpful Hierarchy
  1041. Hidden, Buttons, Fields
  1042. Hierarchy
  1043. HyperCard Version?
  1044. HyperEdit
  1045. HyperSound‚Ñ¢
  1046.  
  1047.  
  1048. -- part 102 (field)
  1049. -- low flags: 81
  1050. -- high flags: 0002
  1051. -- rect: left=32 top=82 right=264 bottom=483
  1052. -- title width / last selected line: 0
  1053. -- icon id / first selected line: 0 / 0
  1054. -- text alignment: 0
  1055. -- font id: 3
  1056. -- text size: 12
  1057. -- style flags: 0
  1058. -- line height: 16
  1059. -- part name: I
  1060. ----- HyperTalk script -----
  1061. (Incremental Compiler
  1062. Icons, Animated 1, Animated 2, Animated 3, Animated 4, Animated 5, Animated 6, Editor, Examples, Ideas, Installed on HomeCard, Initiator, Interactive
  1063. Indicaters
  1064. Info
  1065. Inhieritance Path
  1066. Install HomeCard Icon
  1067. Intro
  1068.  
  1069.  
  1070. -- part 103 (field)
  1071. -- low flags: 81
  1072. -- high flags: 0007
  1073. -- rect: left=32 top=82 right=264 bottom=483
  1074. -- title width / last selected line: 0
  1075. -- icon id / first selected line: 0 / 0
  1076. -- text alignment: 0
  1077. -- font id: 3
  1078. -- text size: 12
  1079. -- style flags: 0
  1080. -- line height: 16
  1081. -- part name: J
  1082.  
  1083.  
  1084. -- part 104 (field)
  1085. -- low flags: 81
  1086. -- high flags: 0007
  1087. -- rect: left=32 top=82 right=264 bottom=483
  1088. -- title width / last selected line: 0
  1089. -- icon id / first selected line: 0 / 0
  1090. -- text alignment: 0
  1091. -- font id: 3
  1092. -- text size: 12
  1093. -- style flags: 0
  1094. -- line height: 16
  1095. -- part name: K
  1096. ----- HyperTalk script -----
  1097. Keyboard Simulator
  1098. Knobs
  1099.  
  1100.  
  1101. -- part 105 (field)
  1102. -- low flags: 81
  1103. -- high flags: 0007
  1104. -- rect: left=32 top=82 right=264 bottom=483
  1105. -- title width / last selected line: 0
  1106. -- icon id / first selected line: 0 / 0
  1107. -- text alignment: 0
  1108. -- font id: 3
  1109. -- text size: 12
  1110. -- style flags: 0
  1111. -- line height: 16
  1112. -- part name: L
  1113. ----- HyperTalk script -----
  1114. Last Updated
  1115. List Next & Prev Cards
  1116.  
  1117.  
  1118. -- part 106 (field)
  1119. -- low flags: 81
  1120. -- high flags: 0007
  1121. -- rect: left=32 top=82 right=264 bottom=483
  1122. -- title width / last selected line: 0
  1123. -- icon id / first selected line: 0 / 0
  1124. -- text alignment: 0
  1125. -- font id: 3
  1126. -- text size: 12
  1127. -- style flags: 0
  1128. -- line height: 16
  1129. -- part name: M
  1130. ----- HyperTalk script -----
  1131. (Menu Editor
  1132. (Menu Generator
  1133. (Menu Maker
  1134. (Menus
  1135. Make Icons
  1136. Map
  1137. Master Map
  1138. Meters
  1139. Mouse Location
  1140. Multi-Icon Buttons
  1141.  
  1142.  
  1143. -- part 107 (field)
  1144. -- low flags: 81
  1145. -- high flags: 0007
  1146. -- rect: left=32 top=82 right=264 bottom=483
  1147. -- title width / last selected line: 0
  1148. -- icon id / first selected line: 0 / 0
  1149. -- text alignment: 0
  1150. -- font id: 3
  1151. -- text size: 12
  1152. -- style flags: 0
  1153. -- line height: 16
  1154. -- part name: N
  1155. ----- HyperTalk script -----
  1156. Next & Prev Cards
  1157.  
  1158.  
  1159. -- part 108 (field)
  1160. -- low flags: 81
  1161. -- high flags: 0007
  1162. -- rect: left=32 top=82 right=264 bottom=483
  1163. -- title width / last selected line: 0
  1164. -- icon id / first selected line: 0 / 0
  1165. -- text alignment: 0
  1166. -- font id: 3
  1167. -- text size: 12
  1168. -- style flags: 0
  1169. -- line height: 16
  1170. -- part name: O
  1171. ----- HyperTalk script -----
  1172. Open Aplication
  1173. Organizational Chart
  1174. OverLoad
  1175.  
  1176.  
  1177. -- part 109 (field)
  1178. -- low flags: 81
  1179. -- high flags: 0007
  1180. -- rect: left=32 top=82 right=264 bottom=483
  1181. -- title width / last selected line: 0
  1182. -- icon id / first selected line: 0 / 0
  1183. -- text alignment: 0
  1184. -- font id: 3
  1185. -- text size: 12
  1186. -- style flags: 0
  1187. -- line height: 16
  1188. -- part name: P
  1189. ----- HyperTalk script -----
  1190. (Pop-Up Menu Maker
  1191. (Pull-Down Menu Maker
  1192. Panic
  1193. Pause
  1194. Pixel Grid
  1195. Power Keys
  1196. Previous & Next Card
  1197. Pushbuttons
  1198.  
  1199.  
  1200. -- part 110 (field)
  1201. -- low flags: 81
  1202. -- high flags: 0007
  1203. -- rect: left=32 top=82 right=264 bottom=483
  1204. -- title width / last selected line: 0
  1205. -- icon id / first selected line: 0 / 0
  1206. -- text alignment: 0
  1207. -- font id: 3
  1208. -- text size: 12
  1209. -- style flags: 0
  1210. -- line height: 16
  1211. -- part name: Q
  1212. ----- HyperTalk script -----
  1213. Quit HyperCard
  1214.  
  1215.  
  1216. -- part 111 (field)
  1217. -- low flags: 81
  1218. -- high flags: 0007
  1219. -- rect: left=32 top=82 right=264 bottom=483
  1220. -- title width / last selected line: 0
  1221. -- icon id / first selected line: 0 / 0
  1222. -- text alignment: 0
  1223. -- font id: 3
  1224. -- text size: 12
  1225. -- style flags: 0
  1226. -- line height: 16
  1227. -- part name: R
  1228. ----- HyperTalk script -----
  1229. ResCopy
  1230. ResEdit
  1231. Resource Editors
  1232. Resources
  1233.  
  1234.  
  1235. -- part 112 (field)
  1236. -- low flags: 81
  1237. -- high flags: 0007
  1238. -- rect: left=32 top=82 right=264 bottom=483
  1239. -- title width / last selected line: 0
  1240. -- icon id / first selected line: 0 / 0
  1241. -- text alignment: 0
  1242. -- font id: 3
  1243. -- text size: 12
  1244. -- style flags: 0
  1245. -- line height: 16
  1246. -- part name: S
  1247. ----- HyperTalk script -----
  1248. (Script Generator
  1249. (Script Tutor
  1250. (Smart Scripter
  1251. Script Header
  1252. Script of..., Bkgnd..., Button..., Card..., Field..., Home Stack, Stack...
  1253. Show Grid
  1254. Sliders
  1255. SoundEdit‚Ñ¢
  1256. Sounds, Animal, Digitized, Effects, Instrument, Keyboard, Music, People, snd Resources, Speech Synthesis, Tempo, Tunes
  1257. Speech Synthesis
  1258. Stack Space Available
  1259. Switches
  1260.  
  1261.  
  1262. -- part 113 (field)
  1263. -- low flags: 81
  1264. -- high flags: 0007
  1265. -- rect: left=32 top=82 right=264 bottom=483
  1266. -- title width / last selected line: 0
  1267. -- icon id / first selected line: 0 / 0
  1268. -- text alignment: 0
  1269. -- font id: 3
  1270. -- text size: 12
  1271. -- style flags: 0
  1272. -- line height: 16
  1273. -- part name: T
  1274. ----- HyperTalk script -----
  1275. Text Arrows
  1276. Time & Date
  1277. Titles
  1278. Tools
  1279.  
  1280.  
  1281. -- part 114 (field)
  1282. -- low flags: 81
  1283. -- high flags: 0007
  1284. -- rect: left=32 top=82 right=264 bottom=483
  1285. -- title width / last selected line: 0
  1286. -- icon id / first selected line: 0 / 0
  1287. -- text alignment: 0
  1288. -- font id: 3
  1289. -- text size: 12
  1290. -- style flags: 0
  1291. -- line height: 16
  1292. -- part name: U
  1293. ----- HyperTalk script -----
  1294. Updated Last
  1295. UserLevel,1  Browsing,2  Typing,3  Painting,4  Authoring,5  Scripting
  1296.  
  1297.  
  1298. -- part 115 (field)
  1299. -- low flags: 81
  1300. -- high flags: 0007
  1301. -- rect: left=32 top=82 right=264 bottom=483
  1302. -- title width / last selected line: 0
  1303. -- icon id / first selected line: 0 / 0
  1304. -- text alignment: 0
  1305. -- font id: 3
  1306. -- text size: 12
  1307. -- style flags: 0
  1308. -- line height: 16
  1309. -- part name: V
  1310. ----- HyperTalk script -----
  1311. Version Number
  1312. Visual Effects
  1313. Volume Adjustment, 0  Mute, 1  Soft, 2, 3, 4  Medium, 5, 6, 7  Loudest
  1314. Volume Controls
  1315.  
  1316.  
  1317. -- part 116 (field)
  1318. -- low flags: 81
  1319. -- high flags: 0007
  1320. -- rect: left=32 top=82 right=264 bottom=483
  1321. -- title width / last selected line: 0
  1322. -- icon id / first selected line: 0 / 0
  1323. -- text alignment: 0
  1324. -- font id: 3
  1325. -- text size: 12
  1326. -- style flags: 0
  1327. -- line height: 16
  1328. -- part name: W
  1329.  
  1330.  
  1331. -- part 117 (field)
  1332. -- low flags: 81
  1333. -- high flags: 0007
  1334. -- rect: left=32 top=82 right=264 bottom=483
  1335. -- title width / last selected line: 0
  1336. -- icon id / first selected line: 0 / 0
  1337. -- text alignment: 0
  1338. -- font id: 3
  1339. -- text size: 12
  1340. -- style flags: 0
  1341. -- line height: 16
  1342. -- part name: X
  1343. ----- HyperTalk script -----
  1344. (XCMD Builder
  1345. (XCMD Code Examiner
  1346. (XFCN Builder
  1347. (XFCN Code Examiner
  1348. XCMDs
  1349. XFCNs
  1350.  
  1351.  
  1352. -- part 118 (field)
  1353. -- low flags: 81
  1354. -- high flags: 0007
  1355. -- rect: left=32 top=82 right=264 bottom=483
  1356. -- title width / last selected line: 0
  1357. -- icon id / first selected line: 0 / 0
  1358. -- text alignment: 0
  1359. -- font id: 3
  1360. -- text size: 12
  1361. -- style flags: 0
  1362. -- line height: 16
  1363. -- part name: Y
  1364.  
  1365.  
  1366. -- part 119 (field)
  1367. -- low flags: 81
  1368. -- high flags: 0007
  1369. -- rect: left=32 top=82 right=264 bottom=483
  1370. -- title width / last selected line: 0
  1371. -- icon id / first selected line: 0 / 0
  1372. -- text alignment: 0
  1373. -- font id: 3
  1374. -- text size: 12
  1375. -- style flags: 0
  1376. -- line height: 16
  1377. -- part name: Z
  1378.  
  1379.  
  1380. -- part 120 (button)
  1381. -- low flags: 80
  1382. -- high flags: A002
  1383. -- rect: left=123 top=77 right=94 bottom=297
  1384. -- title width / last selected line: 0
  1385. -- icon id / first selected line: 0 / 0
  1386. -- text alignment: 1
  1387. -- font id: 0
  1388. -- text size: 12
  1389. -- style flags: 0
  1390. -- line height: 16
  1391. -- part name: Leave Background
  1392. ----- HyperTalk script -----
  1393. on mouseUp
  1394.   set the editBkgnd to false
  1395.   hide the target
  1396. end mouseUp
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402. -- part 121 (button)
  1403. -- low flags: 80
  1404. -- high flags: A000
  1405. -- rect: left=243 top=234 right=284 bottom=352
  1406. -- title width / last selected line: 0
  1407. -- icon id / first selected line: 4179 / 4179
  1408. -- text alignment: 1
  1409. -- font id: 0
  1410. -- text size: 12
  1411. -- style flags: 0
  1412. -- line height: 16
  1413. -- part name: Stack Starter
  1414. ----- HyperTalk script -----
  1415. on mouseUp
  1416.   repeat with i = 4178 to 4179
  1417.     set icon of me to i
  1418.     play "Click"
  1419.   end repeat
  1420.   go stack (short name of me)
  1421. end mouseUp
  1422.  
  1423.  
  1424.  
  1425.  
  1426. -- part 122 (field)
  1427. -- low flags: 81
  1428. -- high flags: 0007
  1429. -- rect: left=89 top=119 right=231 bottom=335
  1430. -- title width / last selected line: 0
  1431. -- icon id / first selected line: 0 / 0
  1432. -- text alignment: 0
  1433. -- font id: 3
  1434. -- text size: 12
  1435. -- style flags: 0
  1436. -- line height: 16
  1437. -- part name: fontField
  1438. ----- HyperTalk script -----
  1439. B Garamond Bold
  1440. B Goudy Bold
  1441. BETA ITALIC
  1442. BI Garamond BoldItalic
  1443. BI Goudy BoldItalic
  1444. Brennero
  1445. Chicago
  1446. Courier
  1447. Garamond
  1448. Geneva
  1449. Helvetica
  1450. I Garamond LightItalic
  1451. I Goudy Italic
  1452. Monaco
  1453. Muda
  1454. New York
  1455. Times
  1456. Venice
  1457.  
  1458.  
  1459. -- part 123 (button)
  1460. -- low flags: 00
  1461. -- high flags: C002
  1462. -- rect: left=15 top=62 right=75 bottom=221
  1463. -- title width / last selected line: 0
  1464. -- icon id / first selected line: 0 / 0
  1465. -- text alignment: 1
  1466. -- font id: 3
  1467. -- text size: 9
  1468. -- style flags: 256
  1469. -- line height: 12
  1470. -- part name: Volume | Fonts | Style | Size | Height
  1471. ----- HyperTalk script -----
  1472. on mouseDown
  1473.   global ActiveField
  1474.   set hilite of me to true
  1475.   put "field id 13" into jim
  1476.   put the rect of the target into holder
  1477.   put (item 1 of the clickloc) - (item 1 of the rect of me) into A
  1478.   put (item 3 of the rect of me)-(item 1 of the rect of me) into B
  1479.   put trunc(A/(B/5))into joe
  1480.   if Joe is empty then
  1481.   else
  1482.     put (item 1 of the clickloc-6) into horiz
  1483.     put (item 2 of holder)+13 into vert
  1484.     if joe is "0" then
  1485.       get PopUpMenu(" 0 ; 1 ; 2 ; 3 ; 4 ; 5 ; 6 ; 7 ", 0, vert, horiz)
  1486.       if it is "0" then
  1487.       else
  1488.         put word it of " 0  1  2  3  4  5  6  7" into sam
  1489.         SetVolume(sam)
  1490.         play harpsichord "c ew"
  1491.       end if
  1492.     else if Joe is "1" then
  1493.       if script of field "fontField" is empty then
  1494.         answer "Oops, no FONTS in this system." with "Sorry"
  1495.         exit mouseDown
  1496.       else
  1497.         get PopUpMenu(script of field "fontField",0, vert, horiz)
  1498.         if it is "0" then
  1499.         else
  1500.           put (line it of script of field "fontField") into Sam
  1501.           if ActiveField <> empty then
  1502.             set textFont of ActiveField to sam
  1503.           else set textFont to sam
  1504.         end if
  1505.       end if
  1506.     else if Joe is "2" then
  1507.       get PopUpMenu(" Plain ; <BBold ; <IItalic ; <UUnderline ; <OOutline ; <SShadow ; Condense ; Extend ;(----------) ; Left ; Center ; Right ", 0, vert, horiz)
  1508.       if it is "0" then
  1509.       else
  1510.         put word it of " Plain Bold Italic Underline Outline Shadow Condense Extend -- Left Center Right" into sam
  1511.         if ActiveField <> empty then
  1512.           if sam is "Plain" then set textStyle of ActiveField to plain
  1513.           else if sam is "Left" then set textAlign of ActiveField to left
  1514.           else if sam is "Center" then set textAlign of ActiveField to center
  1515.           else if sam is "Right" then set textAlign of ActiveField to right
  1516.           else if textStyle of ActiveField is "Plain" then set textStyle of ActiveField to sam
  1517.           else
  1518.             put "set textStyle of" && ActiveField && "to" && ((textStyle of ActiveField) & "," && sam) into temp
  1519.             do (temp)
  1520.           end if
  1521.         else
  1522.           if sam is "Plain" then set textStyle to sam
  1523.           else if sam is "Left" then set textAlign to left
  1524.           else if sam is "Center" then set textAlign to center
  1525.           else if sam is "Right" then set textAlign to right
  1526.           else if the textStyle is "Plain" then set textStyle to sam
  1527.           else
  1528.             put "set textStyle" && "to" && ((the textStyle) & "," && sam) into temp
  1529.             do (temp)
  1530.           end if
  1531.         end if
  1532.       end if
  1533.     else if Joe is "3" then
  1534.       get PopUpMenu(" 4; 6 ; 8 ; 9 ; 10 ; <O12 ; 14 ; <O18 ; 24 ; 36 ; 48 ; 52 ; 72 ", 0, vert, horiz)
  1535.       if it is "0" then
  1536.       else
  1537.         put word it of " 4 6 8 9 10 12 14 18 24 36 48 52 72 " into sam
  1538.         if ActiveField <> empty then
  1539.           set textSize of ActiveField to sam
  1540.         else set textSize to sam
  1541.       end if
  1542.     else if Joe is "4" then
  1543.       get PopUpMenu(" +1 ; -1 ; +3 ; -3 ; +5 ; -5 ; +10 ; -10 ", 0, vert, horiz)
  1544.       if it is "0" then
  1545.       else
  1546.         put word it of " +1  -1  +3  -3  +5  -5  +10  -10 " into sam
  1547.         if ActiveField <> empty then
  1548.           put "set textHeight of" && ActiveField && "to (" & (textHeight of ActiveField) & (sam) & ")" into temp
  1549.           do (temp)
  1550.         end if
  1551.       end if
  1552.     end if
  1553.   end if
  1554. end mouseDown
  1555.  
  1556. on mouseUp
  1557.  
  1558. end mouseUp
  1559.  
  1560.  
  1561.  
  1562. -- part 124 (field)
  1563. -- low flags: 81
  1564. -- high flags: 0000
  1565. -- rect: left=118 top=146 right=199 bottom=198
  1566. -- title width / last selected line: 0
  1567. -- icon id / first selected line: 0 / 0
  1568. -- text alignment: 0
  1569. -- font id: 3
  1570. -- text size: 12
  1571. -- style flags: 0
  1572. -- line height: 16
  1573. -- part name: BS
  1574. ----- HyperTalk script -----
  1575. on ScriptHeader --------- by Robin Shank --------
  1576.   global UserName
  1577.   Answer "Format script of this" with "stack" or "bkgnd" or "card"
  1578.   put it into WhichObject
  1579.  
  1580.   lockcard
  1581.   do "put script of this" && whichObject && "into tempScript"
  1582.   put number of chars in tempScript into OrigCharCount
  1583.  
  1584.   If tempScript is empty then
  1585.     answer "This" && WhichObject && "does not have a script."
  1586.     exit ScriptHeader
  1587.   end if
  1588.  
  1589.   put empty into Handlers
  1590.   put empty into Functions
  1591.  
  1592.   -------- Delete existing header -----------------------------
  1593.   -- this usually works
  1594.   if char 1 of TempScript is "‚àû" then
  1595.     repeat with endOfHeader = 2 to number of lines in TempScript
  1596.       if char 1 of line endOfHeader of tempScript = "‚àû" then exit repeat
  1597.     end repeat
  1598.     put endOfHeader
  1599.     Delete line 1 to endOfHeader of TempScript
  1600.   end if
  1601.  
  1602.   ----------- Get names of handlers and functions: ------------
  1603.   repeat with index = 1 to number of lines in tempScript
  1604.     set cursor to busy
  1605.     If first word of line index of tempScript is "On" then
  1606.       if number of chars of last line of Handlers > 55
  1607.       then put return & "--        " after Handlers
  1608.       put second word of line index of tempScript after Handlers
  1609.       put  "," after Handlers
  1610.     else if first word of line index of tempScript is "function" then
  1611.       if number of chars of last line of Functions > 55
  1612.       then put return & "--        " after Functions
  1613.       put second word of line index of tempScript after Functions
  1614.       put  "," after Functions
  1615.     end if
  1616.   end repeat
  1617.   delete last char of Handlers    -- kills last comma
  1618.   delete last char of Functions
  1619.  
  1620.   ------------ Format the new header --------------------------
  1621.   put "‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Script info for this " & WhichObject & ". ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû" & return & "HANDLERS:" && Handlers & return & return & "FUNCTIONS:" && Functions & return & return & "Size of script:" && number of chars in tempScript && "chars." & "         " & the date  & "         " & UserName & return & "‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû" & return & return into Header
  1622.  
  1623.   ---------- Sticks it before the script ----------------------
  1624.   put Header before Tempscript
  1625.   do "set script of this" && whichObject && "to tempScript"
  1626. end ScriptHeader
  1627.  
  1628. on backToChicago
  1629.   answer "Warning! This will change all buttons" with "OK" or "Cancel"
  1630.   if it is "Cancel" then exit backToChicago
  1631.   repeat with i = 1 to the number of buttons
  1632.     set textfont of btn i to chicago
  1633.   end repeat
  1634.   repeat with i = 1 to the number of bkgnd buttons
  1635.     set textfont of bkgnd btn i to chicago
  1636.   end repeat
  1637.   flash 2
  1638. end backToChicago
  1639.  
  1640. on bkgndScript
  1641.   answer "Edit this background script or another" with "Cancel" or "This" or "Another"
  1642.   if it is "This" then edit script of this background
  1643.   else if it is "Another" then
  1644.     ask "The name or id of the Background to edit." with "Type the background name or id number here."
  1645.     if it is empty then exit bkgndScript
  1646.     if it is "Type the background name or id number here." then exit bkgndScript
  1647.     put it into bName
  1648.     get first char of bName
  1649.     if it is in "1234567890" then
  1650.       put "id " before bName
  1651.     end if
  1652.     put "bkgnd " before bName
  1653.     put "edit script of" && bName
  1654.     answer "Is this background part of this stack?" with "Yes" or "No" or "Cancel"
  1655.     if it is "Yes" then edit script of bName
  1656.     if it is "No" then
  1657.       put filename("STAK") into fName
  1658.       if fName is empty then exit bkgndScript
  1659.       push card
  1660.       set cursor to 4
  1661.       lockcard
  1662.       put bName && "of stack" && fname into kludge
  1663.       go to (kludge)
  1664.       if the result <> empty then answer "Unable to find" && bName
  1665.       else
  1666.         edit script of this bkgnd
  1667.       end if
  1668.       pop card
  1669.     end if
  1670.   end if
  1671. end bkgndScript
  1672.  
  1673. on btnScript
  1674.   global eName
  1675.   ask "The name or id of button to edit." with "Type button name or id number here."
  1676.   if it is empty then
  1677.   else if it is "Type button name or id number here." then
  1678.   else
  1679.     put it into eName
  1680.     editScript
  1681.   end if
  1682. end btnScript
  1683.  
  1684. on cardScript
  1685.   answer "Edit this card script or another" with "Cancel" or "This" or "Another"
  1686.   if it is "This" then edit script of this card
  1687.   if it is "Another" then
  1688.     ask "The name or id of card to edit." with "Type card name or id number here."
  1689.     put it into cName
  1690.     if cName is empty then exit cardScript
  1691.     if cName is "Type card name or id number here." then exit cardScript
  1692.     get first char of cName
  1693.     if it is in "1234567890" then
  1694.       put "id " before cName
  1695.     end if
  1696.     put "card " before cName
  1697.     put "edit script of" && cName
  1698.     answer "Is this card part of this stack?" with "Yes" or "No" or "Cancel"
  1699.     if it is "Yes" then edit script of cName
  1700.     if it is "No" then
  1701.       put filename("STAK") into fName
  1702.       if fName is empty then exit cardScript
  1703.       push card
  1704.       set cursor to 4
  1705.       lockcard
  1706.       put cName && "of stack" && fname into kludge
  1707.       go to (kludge)
  1708.       if the result <> empty then answer "Unable to find" && cName
  1709.       else
  1710.         edit script of this card
  1711.       end if
  1712.       pop card
  1713.     end if
  1714.   end if
  1715. end cardScript
  1716.  
  1717. on deprotect1
  1718.   put filename("STAK") into fname
  1719.   if fname <> empty then
  1720.     deprotect fname
  1721.     if the result is empty then
  1722.       answer "Deprotect Successful" with "OK"
  1723.     else if the result is -44 then
  1724.       answer "Sorry, the disk is locked."
  1725.     else if the result is -49 then
  1726.       answer "Sorry, that file is busy."
  1727.     else answer "Failed: unexpected file system error: " & the result with "OK"
  1728.   end if
  1729. end deprotect1
  1730.  
  1731. on editScript
  1732.   global eName
  1733.   get first char of eName
  1734.   if it is in "1234567890" then
  1735.     put "id " before eName
  1736.   end if
  1737.   answer "Is this a card or Background button?" with "Cancel" or "Card" or "Background"
  1738.   if it is "Cancel" then exit editScript
  1739.   if it is "Card" then put "card " before eName
  1740.   else if it is "Background" then put "bkgnd " before eName
  1741.   answer "Is this button on this card?" with "This Card" or "This Stack" or "Another"
  1742.   put it into temp
  1743.   if temp is "This Card" then edit script of eName
  1744.   else
  1745.     ask "The name or id of card it's on." with "Type card name or id number here."
  1746.     put it into cName
  1747.     if cName is empty then exit editScript
  1748.     if cName is "Type card name or id number here." then exit editScript
  1749.     get first char of cName
  1750.     if temp is in "1234567890" then
  1751.       put "id " before cName
  1752.     end if
  1753.     put "card " before cName
  1754.     if temp is "This Stack" then
  1755.       go to (cName)
  1756.       if the result <> empty then answer "Unable to find" && cName
  1757.       else
  1758.         edit script of eName
  1759.       end if
  1760.     else if temp is "Another" then
  1761.       put filename("STAK") into fName
  1762.       if fName is empty then exit editScript
  1763.       push card
  1764.       set cursor to 4
  1765.       lockcard
  1766.       put cName && "of stack" && fname into kludge
  1767.       go to (kludge)
  1768.       if the result <> empty then answer "Unable to find" && cName
  1769.       else
  1770.         edit script of eName
  1771.       end if
  1772.       pop card
  1773.     end if
  1774.   end if
  1775. end editScript
  1776.  
  1777. on fieldScript
  1778.   global eName
  1779.   ask "The name or id of field to edit." with "Type field name or id number here."
  1780.   if it is empty then
  1781.   else if it is "Type field name or id number here." then
  1782.   else
  1783.     put it into eName
  1784.     editScript
  1785.   end if
  1786. end fieldScript
  1787.  
  1788. on getSpecs
  1789.   put SysEnvirons(2) into i
  1790.   if i=0 then put "This is an unknown machine." into it
  1791.   else if i=1 then put "This is a Mac 512E." into it
  1792.   else if i=2 then put "This is a Mac Plus." into it
  1793.   else if i=3 then put "This is a Mac SE." into it
  1794.   else if i=4 then put "This is a Mac II." into it
  1795.   else put "This is an unknown machine." into it
  1796.   answer it
  1797.   put SysEnvirons(4) into i
  1798.   if i=0 then put "The CPU is unknown." into it
  1799.   else if i=1 then put "The CPU is a 68000." into it
  1800.   else if i=2 then put "The CPU is a 68010." into it
  1801.   else if i=3 then put "The CPU is a 68020." into it
  1802.   answer it
  1803.   if SysEnvirons(5) then answer "This machine has a math co-processor."
  1804.   else answer "This machine has no math co-processor."
  1805.   get SysEnvirons(3)
  1806.   if char 1 of it <> "0" then put char 1 of it into temp
  1807.   put "The system version is " & char 2 of it & "." & char 3 of it into temp
  1808.   if char 4 of it <> "0" then put char 4 of it after temp
  1809.   answer temp
  1810.   get the version
  1811.   if it is "1.0" then
  1812.     put "1.01" into temp1
  1813.   else if it is "1.1" then
  1814.     put "1.1" into temp1
  1815.   else
  1816.     if char 1 of it <> "0" then put char 1 of it into temp1
  1817.     put char 2 of it & "." & char 3 of it after temp1
  1818.     if char 4 of it <> "0" then put char 4 of it after temp1
  1819.   end if
  1820.   answer "This HyperCard version is" && temp1
  1821.   get getscreen()
  1822.   put "The screen size is " & item 3 of it & " by " & item 4 of it & " pixels." into temp
  1823.   answer temp
  1824. end getSpecs
  1825.  
  1826. on getSpecsFirst
  1827.   global FastMac, BigScreen
  1828.   put empty into card field "Specs"
  1829.   lockcard
  1830.   put empty into FastMac
  1831.   put empty into BigScreen
  1832.   put SysEnvirons(2) into i
  1833.   if i=0 then put "This is an unknown machine." into temp
  1834.   else if i=1 then put "This is a Mac 512E." into temp
  1835.   else if i=2 then put "This is a Mac Plus." into temp
  1836.   else if i=3 then put "This is a Mac SE." into temp
  1837.   else if i=4 then
  1838.     put "This is a Mac II." into temp
  1839.     add 1 to FastMac
  1840.   else put "This is an unknown machine." after temp
  1841.   put return after temp
  1842.   put SysEnvirons(4) into i
  1843.   if i=0 then put "The CPU is unknown." after temp
  1844.   else if i=1 then put "The CPU is a 68000." after temp
  1845.   else if i=2 then put "The CPU is a 68010." after temp
  1846.   else if i=3 then
  1847.     put "The CPU is a 68020." after temp
  1848.     add 1 to FastMac
  1849.   end if
  1850.   put return after temp
  1851.   if SysEnvirons(5) then
  1852.     put "This machine has a math co-processor." after temp
  1853.     add 1 to FastMac
  1854.   else put "This machine has no math co-processor." after temp
  1855.   put return after temp
  1856.   get SysEnvirons(3)
  1857.   if char 1 of it <> "0" then put char 1 of it after temp
  1858.   put "The system version is " & char 2 of it & "." & char 3 of it after temp
  1859.   if char 4 of it <> "0" then put char 4 of it after temp
  1860.   put return after temp
  1861.   get the long version
  1862.   if it is "1.0" then
  1863.     put "1.0.1" into temp1
  1864.   else if it is "1.1" then
  1865.     put "1.1" into temp1
  1866.   else
  1867.     if char 1 of it <> "0" then put char 1 of it into temp1
  1868.     put char 2 of it & "." & char 3 of it after temp1
  1869.     if char 4 of it <> "0" then put "." & char 4 of it after temp1
  1870.   end if
  1871.   put "This HyperCard version is " & temp1 after temp
  1872.   put return after temp
  1873.   get getscreen()
  1874.   if it <> "0,0,512,342" then add 1 to BigScreen
  1875.   put "The screen size is " & item 3 of it & " by " & item 4 of it & " pixels." after temp
  1876.   put temp into card field "Specs"
  1877. end getSpecsFirst
  1878.  
  1879. on installHomeCardIcon
  1880.   put short name of this stack into temp
  1881.   set the cursor to 4
  1882.   show bkgnd btn "Stack Starter"
  1883.   choose button tool
  1884.   get the location of bkgnd btn "Stack Starter"
  1885.   click at it
  1886.   set the name of bkgnd btn "Stack Starter" to temp
  1887.   doMenu "Copy Button"
  1888.   go to stack "home"
  1889.   doMenu "Paste Button"
  1890.   choose browse tool
  1891.   pop card
  1892.   set the name of bkgnd btn temp to "Stack Starter"
  1893.   hide bkgnd btn "Stack Starter"
  1894.   answer "HomeCard Button Installed"
  1895. end installHomeCardIcon
  1896.  
  1897. on OsErr err
  1898.   -- From Dewi Williams
  1899.   if err > 0 then -- XFCN convention
  1900.     put "Parameter error with function" into errstr
  1901.   else if err is -59 then
  1902.     put "Problem during rename" into errstr
  1903.   else if err is -54 then
  1904.     put "Attempt to open locked file for writing" into errstr
  1905.   else if err is -46 then
  1906.     put "Volume locked by software" into errstr
  1907.   else if err is -45 then
  1908.     put "File locked" into errstr
  1909.   else if err is -44 then
  1910.     put "Volume locked by hardware" into errstr
  1911.   else if err is -43 then
  1912.     put "File not found" into errstr
  1913.   else if err is -37 then
  1914.     put "Bad volume or file name" into errstr
  1915.   else if err is -36 then
  1916.     put "I/O error" into errstr
  1917.   else if err is -35 then
  1918.     put "No such volume" into errstr
  1919.   else if err is -34 then
  1920.     put "Disk is full" into errstr
  1921.   else if err is -49 then
  1922.     put "File already open for writing" into errstr
  1923.   else
  1924.     put "Failed with error" && err into errstr
  1925.   end if
  1926.   answer errstr with "OK"
  1927. end OsErr
  1928.  
  1929. on ShowHiddenBtns
  1930.   global UnHidden
  1931.   answer "WARNING - this will hilite all hidden buttons!" with "OK" or "Cancel"
  1932.   if it is "Cancel" then exit ShowHiddenBtns
  1933.   repeat with i = 1 to the number of card buttons
  1934.     if the visible of card btn i is false then
  1935.       set hilite of card btn i to true
  1936.       show card btn i
  1937.       put UnHidden & return & "set hilite of card btn" && i && "to false" & return & "hide card btn" && i into UnHidden
  1938.     end if
  1939.   end repeat
  1940.   repeat with j = 1 to the number of bkgnd buttons
  1941.     if the visible of bkgnd btn j is false then
  1942.       set hilite of bkgnd btn j to true
  1943.       show bkgnd btn j
  1944.       put UnHidden & return & "set hilite of bkgnd btn" && j && "to false" & return & "hide bkgnd btn" && j into UnHidden
  1945.     end if
  1946.   end repeat
  1947.   if line 1 of UnHidden is empty then delete line 1 of UnHidden
  1948.   answer "Would you like to Re-Hide these buttons?" with "OK" or "Cancel"
  1949.   if it is "Cancel" then exit ShowHiddenBtns
  1950.   put number of lines in UnHidden into lineNum
  1951.   put 1 into done
  1952.   repeat until done >lineNum
  1953.     do line done of UnHidden
  1954.     add 1 to done
  1955.   end repeat
  1956.   put empty into UnHidden
  1957. end ShowHiddenBtns
  1958.  
  1959. on ShowHiddenFields
  1960.   global ResetHidden
  1961.   repeat with i = 1 to the number of card fields
  1962.     if the visible of card field i is false then
  1963.       show card field i
  1964.       put ResetHidden & return & "hide card field" && i into ResetHidden
  1965.     end if
  1966.   end repeat
  1967.   repeat with i = 1 to the number of bkgnd fields
  1968.     if the visible of bkgnd field i is false then
  1969.       show bkgnd field i
  1970.       put ResetHidden & return & "hide bkgnd field" && i into ResetHidden
  1971.     end if
  1972.   end repeat
  1973.   if line 1 of ResetHidden is empty then delete line 1 of ResetHidden
  1974.   answer "Would you like to Re-Hide these fields?" with "OK" or "Cancel"
  1975.   if it is "Cancel" then exit ShowHiddenFields
  1976.   put number of lines in ResetHidden into lineNum
  1977.   put 1 into done
  1978.   repeat until done >lineNum
  1979.     do line done of ResetHidden
  1980.     add 1 to done
  1981.   end repeat
  1982.   put empty into ResetHidden
  1983. end ShowHiddenFields
  1984.  
  1985. on updated
  1986.   --Thanks to: Dewi Williams
  1987.   --2227 Juniper Court, Boulder CO 80302
  1988.   --(303) 443 9038,     Delphi: DEWI
  1989.  
  1990.   answer "Get update for this stack or another?" with "Cancel" or "This Stack" or "Another"
  1991.   if it is "Cancel" then exit updated
  1992.   if it is "This Stack" then
  1993.     get the long name of this stack
  1994.     put the length of it into temp
  1995.     put char 8 to temp-1 of it into thisfile
  1996.   else
  1997.     put "Select a stack, please"
  1998.     put filename() into thisfile
  1999.     hide msg
  2000.     if thisfile is empty then exit updated
  2001.   end if
  2002.   put "Started " into info
  2003.   convert fileModDate(thisfile,true) to short date
  2004.   put it after info
  2005.   put ";  Last modified " after info
  2006.   convert fileModDate(thisfile,false) to short date
  2007.   put it after info
  2008.   answer info
  2009. end updated
  2010.  
  2011.  
  2012.  
  2013. -- part 125 (field)
  2014. -- low flags: 80
  2015. -- high flags: 0000
  2016. -- rect: left=324 top=69 right=87 bottom=346
  2017. -- title width / last selected line: 0
  2018. -- icon id / first selected line: 0 / 0
  2019. -- text alignment: 0
  2020. -- font id: 3
  2021. -- text size: 12
  2022. -- style flags: 0
  2023. -- line height: 16
  2024. -- part name: sndField
  2025. ----- HyperTalk script -----
  2026. 0
  2027. 1
  2028. 2
  2029. 3
  2030. 4
  2031. 5
  2032. 6
  2033. 7
  2034. 8
  2035. 9
  2036. A
  2037. B
  2038. Boing
  2039. C
  2040. Car
  2041. Cat
  2042. Click
  2043. Coming
  2044. Crashbang
  2045. Crunch
  2046. Cucu
  2047. D
  2048. Dog
  2049. DoorClose
  2050. DoorOpen
  2051. Drip
  2052. E
  2053. Evil Laugh
  2054. F
  2055. Frog
  2056. G
  2057. Get Lost
  2058. Gunshot
  2059. H
  2060. Harpsichord
  2061. Hello
  2062. Honk
  2063. I
  2064. J
  2065. K
  2066. Knock
  2067. L
  2068. M
  2069. Metal Falling
  2070. N
  2071. O
  2072. P
  2073. Q
  2074. R
  2075. S
  2076. Silence
  2077. SpinCylinder
  2078. Static
  2079. Step
  2080. Switch
  2081. T
  2082. U
  2083. Uuh
  2084. V
  2085. W
  2086. X
  2087. Y
  2088. Yeow
  2089. Z
  2090.